<%@ page import="com.dingpeikeji.quickdeer.modules.rentproduct.entity.TDemands" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<c:set var="REACTSTATUS_WAIT" value="<%=TDemands.REACTSTATUS_WAIT %>" />
<c:set var="REACTSTATUS_DONE" value="<%=TDemands.REACTSTATUS_DONE %>" />
<c:set var="REACTSTATUS_SURE" value="<%=TDemands.REACTSTATUS_SURE %>" />
<html>
<head>
<meta name="decorator" content="front" />
<title>发票信息管理</title>
<link href="${ctxStatic }/xiake/css/list.css" rel='stylesheet'type='text/css' />
<link href="${ctxStatic }/xiake/css/style.css" rel='stylesheet'type='text/css' />
<style type="text/css">
.fp_title{
	height: 40px;
	line-height: 40px;
	background-color: #efefef;
	padding-left: 10px;
}

</style>
<script type="text/javascript">
	function check(){
		var title = $('#title');
		var receiver = $('#receiver');
		var address = $('#address');
		var postcode = $('#postcode');
		var r = /^1[3|4|5|7|8]\d{9}$/;
		var r2 = /^[1-9][0-9]{5}$/;
		var mobile = $('#mobile');
		if($.trim(mobile.val()) == ''){
			alert('请填写手机号');
			mobile.focus();
			return;
		} else if(!r.test(mobile.val())){
			alert('手机号不正确');
			mobile.focus();
			return;
		}
		if($.trim(postcode.val()) == ''){
			alert('请填写邮编');
			postcode.focus();
			return;
		} else if(!r2.test(postcode.val())){
			alert('邮编不正确');
			postcode.focus();
			return;
		}
		if($.trim(title.val())==''){
			alert('请填写发票抬头！');
			title.focus();
			return;
		}
		if($.trim(receiver.val())==''){
			alert('收件人！');
			receiver.focus();
			return;
		}
		if($.trim(address.val())==''){
			alert('地址！');
			address.focus();
			return;
		}
		$('#inputForm').submit();
	}
</script>
</head>
<body>
	<div class="container font_normal_size"> 
		<div class="container_navf">
			<c:set var="siderMenuName" value="关于发票"/>
			<%@ include file="/WEB-INF/views/modules/base/siderMenu.jsp"%>
		</div>
		<form id="inputForm" action="${ctxFront }/usersRcpt/save" method="get">
			<div class="container_con">
				<!--     标题 -->
				<div class="fp_title">
				发票信息管理
			    </div>
			    <div class="container_information  font_normal_size">
			    	<input type="hidden" name="alwaysid" value="${tUsersRcpt.alwaysid }"/>
			    	<input type="hidden" name="userid" value="${tUsersRcpt.userid }"/>
			    	<input type="hidden" name="rcptIds" value="${rcptIds }"/>
					<div>
						<label>发票类型:</label>
						<input type="radio" checked style="width: auto;height: auto;">增值税普通发票
					</div>
					<div>
						<label>发票抬头:</label>
						<input id="title" name="title" type="text" placeholder="为保证您的权益,请准确填写" value="${tUsersRcpt.title }">
						<span class="red">*</span>
					</div>
					<div>
						<label>收件人:</label>
						<input id="receiver" name="receiver" type="text" placeholder="请输入收件人名称" value="${tUsersRcpt.receiver }">
						<span class="red">*</span>
					</div>
					<div>
						<label>手机号:</label>
						<input id="mobile" name="mobile" type="text" placeholder="请输入手机号" value="${tUsersRcpt.mobile }">
						<span class="red">*</span>
					</div>
					<div>
						<label>地址:</label>
						<input id="address" name="address" type="text" placeholder="请输入收件地址" value="${tUsersRcpt.address }">
						<span class="red">*</span>
					</div>
					<div>
						<label>邮编:</label>
						<input id="postcode" name="postcode" type="text" placeholder="请输入邮编" value="${tUsersRcpt.postcode }">
						<span class="red">*</span>
					</div>
					<!-- <div>
						<label>邮编:</label>
						<input type="text" placeholder="请输入邮编" value="">
					</div> -->
					<div style="margin-left:250px; ">
						<button class="container_sorder_zf pointer" style="border: none;" type="button" onclick="check();">提交</button>
						<a href="${ctxFront }/usersRcpt/ordersList" class="container_sorder_zf pointer" style="border: none;" type="button">返回</a>
					</div>
				</div>
			</div>
		</form>
	</div>
	<div class="clear"></div>
</body>
</html>